<?php
include('common_include.php');
include('validateSession.php');
$aboutUsInfo = $_POST["aboutUsTextArea"];

$dao = new SQLitePersistence();

if ($aboutUsInfo != '') {
	try {
		$dao->saveAboutUsInfo($aboutUsInfo);
		header("Location: successPage.php?msg=About Us Information save successfully");
	} catch (Exception $e) {
		header("Location: errorPage.php?error=Save About Us Failed.");
	}
} else {
	//disabled javascript injection
}

unset($dao);
?>